// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-1.2 OR LicenseRef-Slint-commercial


PopupWindow := Rectangle {}
Rectangle := Image {}
TabWidget := Text {}
VerticalLayout := PopupWindow {}


TestCase := Window {
    HorizontalLayout {
        pw := PopupWindow {
            background: orangered;
        }
        Rectangle {
            colorize: red;
        }
        TabWidget {
            text: "hello";
            TouchArea { clicked => { parent.text = "world"; } }
        }
        VerticalLayout {
            background: pw.background;
        }
    }
}